<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<% String path = request.getContextPath() ;%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %> 
<%@ taglib uri="/WEB-INF/tld/fmt.tld" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/tld/ui.tld" prefix="ui" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<jsp:include page="../../import.jsp" flush="true" />
</head>
<body class="iframeBody">
	<div class="Wrapper">
		<div>
			<form id="ligerForm">
				<div class="fieldset1 tabel_col clearFix">
					<div class="caption">
						<span class="title">归档详情</span>
					</div>
					<div class="fieldBox col_50">
						<div class="label">合同号</div>
						<div class="field">
						<a href="javascript:detailPrjBtn( ${mgr.prjId})">
						<font color="blue">	${mgr.contractNo}</font>
						</a>
							
						</div>
					</div>
					<div class="fieldBox col_50">
						<div class="label">交接单名称</div>
						<div class="field">
						
								${mgr.arcReceiptName}
						</div>
					</div>
					<div class="fieldBox col_50">
						<div class="label">版本号</div>
						<div class="field">${mgr.versioni}
						</div>
					</div>
					<div class="fieldBox col_50">
						<div class="label">总部档案袋编号</div>
						<div class="field">${mgr.portfolioNumber}
						</div>
					</div>
					<div class="fieldBox col_50">
						<div class="label">省公司档案袋编号</div>
						<div class="field">${mgr.portfolioNumberProvince}
						</div>
					</div>
					<!-- 筛选条件 -->
					<jsp:include page="arcMgrSS.jsp" flush="true" />
					
					<div class="caption">
						<span class="title">合同资料、承租人资料、担保人资料</span>
						${mgr.cstNm} ${mgr.contractNo}	
					</div>
					
					<div class="fieldBox col_100">
						<div style="width: 100%; ">
							<table style="BORDER-COLLAPSE: collapse;margin-bottom:20px" borderColor=#ECECEC height=40 cellPadding=1 width="100%" align=center border=1> 
							<thead>
								<tr style="background:#E7FEF4">
									<th  style="text-align: center;width:5%;"></th>
									<th  style="text-align: center;width:8%">权证类别</th>
									<th  style="text-align: center;width:15%">权证名称</th>
									<th  style="text-align: center;width:7%">资料类型</th>
									<th  style="text-align: center;width:7%">是否必须</th>
									<th  style="text-align: center;width:7%">扫描件</th>
									<th  style="text-align: center;width:7%">操作人</th>
									<th  style="text-align: center;width:7%">操作时间</th>
									<th  style="text-align: center;width:7%">归档地点</th>
									<th  style="text-align: center;width:8%">要求归档份数</th>
									<th  style="text-align: center;width:8%">归档中份数</th>
									<th  style="text-align: center;width:8%">已归档份数</th>
									<th  style="text-align: center;width:15%">扫描件</th>
								</tr>
							</thead>
							<tbody>
								<c:forEach items="${cVo.arcMgrDetailList}" var="item" varStatus="status">
									<tr>
									<td style="text-align: center; height:10px;">${status.index+1}</td>
									<td style="text-align: center; ">${item.fileFlagNm }</td>
									<td style="text-align: center; ">${item.fileName }</td>
									<td style="text-align: center; ">${item.dossierTempNm }</td>
									<td style="text-align: center; ">${item.ischoiceNm }</td>
									<td  style="text-align: center;">${item.arcReceiptDetailVO.isScanRequireNm }</td>
									<td  style="text-align: center;">${item.upUsrCdNm }</td>
									<td  style="text-align: center;"><fmt:formatDate type="date" value="${item.upUsrTm }"/></td>
									<td style="text-align: center; ">${item.arcReceiptDetailVO.arcPlaceNm }</td>
									<td style="text-align: center; ">${item.dossierCount }</td>
									<td style="text-align: center; ">${item.dossierCountI }</td>
									<td style="text-align: center; ">									
									<c:if test="${item.dossierTemp =='3' and item.filePath != null}">
			               			<a  target="_blank" href="${item.filePath }" >查看</a>
			               			</c:if>
			               			<c:if test="${item.dossierTemp !='3'}">
			               			${item.dossierCountT }
			               			</c:if>
			               			</td>
			               			<td style="text-align: center;">
			               			<!-- 如果是连接附件 -->
										<c:if test="${item.ulFlag=='1'}">
											<c:forEach items="${item.ulFiles}" var="file" >
											<a  target="_blank" href="${file.filePath }" >查看</a>
											</c:forEach>
										</c:if>
										<!-- 如果不是连接附件 -->
										<c:if test="${item.ulFlag!='1'}">
					               			<c:if test="${item.dossierTemp !='3' and item.eleId != null}">
											<div  class="upfiles" id="${item.id}" pkId="${item.eleId}"  style="text-align:left"></div>
											
											</c:if>
										</c:if>
									</td>
									
								</c:forEach>
							</tbody>
						</table>
						</div>
					</div>
					
					<div class="caption">
						<span class="title">权证资料</span>						
					</div>
					<c:forEach items="${mgrList}" var="mgrvo">
					<div class="fieldBox col_100">
					 <table style="BORDER-COLLAPSE: collapse;" borderColor=#ECECEC height=25 cellPadding=1 width="100%" align=center border=1> 
						<tr >
						<td >
						<a href="javascript:detailBtn(${mgrvo.paySchId},${mgrvo.prjPrdId},${mgrvo.prjId})">
						<font color="blue">${mgrvo.paySchNo}</font></a>--  ${mgrvo.storageStatusNm}&nbsp;&nbsp;&nbsp;  
						车架号：${mgrvo.vin}&nbsp;&nbsp;&nbsp;
						挂靠公司：${mgrvo.lnkCompNm}&nbsp;&nbsp;&nbsp;
						</td>
						<td align=right>
						<a  href="javascript:commShowFlow('${mgrvo.buOrgCd}','${mgrvo.bizFlag}','${mgrvo.prInsId}',${mgrvo.capId})">
						<font  color="blue" >${mgrvo.prInsNo}</font>
						</a>
						</td></tr></table>
						<div style="width: 100%; ">
							 <table style="BORDER-COLLAPSE: collapse;margin-bottom:20px" borderColor=#ECECEC height=40 cellPadding=1 width="100%" align=center border=1> 
							<thead>
								<tr style="background:#E7FEF4">
									<th  style="text-align: center;width:5%;"></th>
									<th  style="text-align: center;width:8%">权证类别</th>
									<th  style="text-align: center;width:15%">权证名称</th>
									<th  style="text-align: center;width:7%">资料类型</th>
									<th  style="text-align: center;width:7%">是否必须</th>
									<th  style="text-align: center;width:7%">扫描件</th>
									<th  style="text-align: center;width:7%">操作人</th>
									<th  style="text-align: center;width:7%">操作时间</th>
									<th  style="text-align: center;width:7%">归档地点</th>
									<th  style="text-align: center;width:8%">要求归档份数</th>
									<th  style="text-align: center;width:8%">归档中份数</th>
									<th  style="text-align: center;width:8%">已归档份数</th>
									<th  style="text-align: center;width:15%">扫描件</th>
								</tr>
							</thead>
							<tbody>
								<c:forEach items="${mgrvo.arcMgrDetailList}" var="item" varStatus="status">
								<tr>
									<td  style="text-align: center; height:20px;">${ status.index + 1}</td>
									<td  style="text-align: center; ">${item.fileFlagNm }</td>
									<td  style="text-align: center; ">${item.fileName }</td>
									<td  style="text-align: center; ">${item.dossierTempNm }</td>
									<td  style="text-align: center; ">${item.ischoiceNm }</td>
									<td  style="text-align: center;">${item.arcReceiptDetailVO.isScanRequireNm }</td>
									<td  style="text-align: center;">${item.upUsrCdNm }</td>
									<td  style="text-align: center;"><fmt:formatDate type="date" value="${item.upUsrTm }"/></td>
									<td style="text-align: center; ">${item.arcReceiptDetailVO.arcPlaceNm }</td>
									<td  style="text-align: center; ">${item.dossierCount }</td>
							
									<td  style="text-align: center; ">${item.dossierCountI }</td>
									<td style="text-align: center; ">									
									<c:if test="${item.dossierTemp =='3' and item.filePath != null}">
			               			<a  target="_blank" href="${item.filePath }" >查看</a>
			               			</c:if>
			               			<c:if test="${item.dossierTemp !='3'}">
			               			${item.dossierCountT }
			               			</c:if>
			               			</td>
			               			<td style="text-align: center;">
			               			<!-- 如果是连接附件 -->
										<c:if test="${item.ulFlag=='1'}">
											<c:forEach items="${item.ulFiles}" var="file" >
											<a  target="_blank" href="${file.filePath }" >查看</a>
											</c:forEach>
										</c:if>
										<!-- 如果不是连接附件 -->
										<c:if test="${item.ulFlag!='1'}">
				               			<c:if test="${item.dossierTemp !='3' and item.eleId != null}">
										<div  class="upfiles" id="${item.id}" pkId="${item.eleId}"  style="text-align:left"></div>
										</c:if>
										</c:if>
									</td>
								<tr>
								</c:forEach>
							</tbody>
						</table>
						</div>
					</div>
					</c:forEach>
					<div class="caption">
						<span class="title">邮寄信息</span>
					</div>
					<div class="fieldBox col_100">
						<div style="width: 100%; ">
							 <table style="BORDER-COLLAPSE: collapse;margin-bottom:20px" borderColor=#ECECEC height=40 cellPadding=1 width="100%" align=center border=1> 
							<thead>
								<!-- 
								<tr style="background:#E7FEF4">
									<th colspan="5"  style="text-align: center;">客户经理邮寄信息</th>
									<th colspan="5"  style="text-align: center;">省公司邮寄信息</th>
									<th colspan="1"  style="text-align: center;">流程信息</th>
								</tr>
								 -->
								<tr style="background:#E7FEF4">
									<th  style="text-align: center;width:2%"></th>
									<th  style="text-align: center;width:9%">邮寄人类型</th>
									<th  style="text-align: center;width:8%">归档方式</th>
									<th  style="text-align: center;width:8%">收件人工号</th>
									<th  style="text-align: center;width:8%">收件人姓名</th>
									<th  style="text-align: center;width:8%">联系电话</th>
									<th  style="text-align: center;width:8%">邮寄公司</th>
									<th  style="text-align: center;width:8%">邮寄单号</th>
									<th  style="text-align: center;width:8%">邮寄时间</th>
									<th  style="text-align: center;width:15%">邮寄地址</th>
									<th  style="text-align: center;width:9%">流程号</th>
								
								</tr>
							</thead>
							<tbody>
								<c:forEach items="${plist}" var="item" varStatus="status">
								<tr>
									<td  style="text-align: center; height:20px;">${status.index+1}</td>
									<td  style="text-align: center; ">${item.sendPorsonTypeNm }</td>
									<td  style="text-align: center; ">${item.sendTypeNm }</td>
									<td  style="text-align: center; ">${item.idCard }</td>
									<td  style="text-align: center; ">${item.recipient }</td>
									<td  style="text-align: center; ">${item.mobile }</td>
									<td  style="text-align: center; ">${item.sendCompanyNm }</td>
									<td style="text-align: center; ">${item.sendNum }</td>
									<td  style="text-align: center; "><fmt:formatDate type="date"  value="${item.sendDate }"/></td>
									<td  style="text-align: center; ">${item.sendAddr }</td>									
									<td  style="text-align: center; ">${item.pNo}</td>
								<tr>
								</c:forEach>
							</tbody>
						</table>
						</div>
					</div>
				</div>
				
				
			</form>
		</div>
	</div>
	<jsp:include page="../../system/sysUlFilesRec/sysUlFileRecList2.jsp" flush="true" >
			        
			            <jsp:param name="fflag" value="0"/>
			        
			            <jsp:param name="tabNm" value="ARC_MGR_DETAIL"/>
    </jsp:include>
    <script type="text/javascript">
	//显示流程
    function commShowFlow(buOrgCd, _bizFlag,_pInstId,_businessKey){
		var _audStsCd="2";
        if(StringUtils.isEmpty(_pInstId)){
            UIUtils.alertWarning(CommonConstant.C_P_INSTANCEID_NOT_HERE);
            return;
        }
        var _formUrl = "/capPay/flow/toAdditionalInfoPage.do?version=2@@capPayId=";
        if(StringUtils.isNotEmpty(buOrgCd) && buOrgCd==ProjectConstant.CODE_BU_ORG_CD_CAR){//汽车金融工行业务
            if(StringUtils.isNotEmpty(rowdata.bizFlag) && rowdata.bizFlag == '2'){
            	_formUrl = "/capital/capPayInfo/toAddPage.do?accCtrl=1@@ctrlKey=3@@bizFlag="+_bizFlag+"@@id=";
            }else{
            	_formUrl = "/capital/capPayInfo/toAddPage.do?accCtrl=1@@ctrlKey=3@@id=";  //汽车金融
            }
        }else if(StringUtils.isNotEmpty(buOrgCd) && buOrgCd==ProjectConstant.CODE_BU_ORG_CD_ZC){//专车事业部
        	_formUrl="/capital/capPayInfo/toAddPageBySpecialCar.do?entrance=0@@id=";
        }else{
        	
        }
        
        
        var params = "?pInsId="+_pInstId+"&status="+_audStsCd+"&businessKey="+_businessKey+"&formUrl="+_formUrl;
        Add_navTab('tab_cst_invoice_flow_'+_businessKey,'查看流程',"<%=path%>/flow/flow/toFlowShowPageFowBus.do"+params);
    }
    </script>
	<script type="text/javascript">
	 	if(${result.success}==0){
	 		alert("${result.info}");
	 	}
	 	
		var grid;
		
		$(function() {
			$("#ligerForm").ligerForm({
				validate: true
			});
			
			//initGrid();//初始化交接单明细
	    });
		
		
	</script>
</body>
</html>